This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Joan Froweploponi 27.Dec.03 05:45 AM a Web browser Domino Web AccessAll ReleasesAll Platforms
I'm Having trouble detaching a file from an RTF. Here's my code...
Although I have the _inputFileName identified as a String above, and have it in the field called FileName, I'm still getting FileName: Null through my debug lines.
if (trace) System.out.println("Item name: " +body.getName());
Vector v = body.getEmbeddedObjects();
Enumeration e = v.elements();
while (e.hasMoreElements()) {
EmbeddedObject eo = (EmbeddedObject)e.nextElement();
if (eo.getType() == EmbeddedObject.EMBED_ATTACHMENT) {
eo.extractFile( _inputFileName );
// now we'll remove the file from the Notes Document...
eo.remove();
saveFlag = true;
}
I pretty much took this from the help file. Can someone help me get this working? I also have to understand exactly where the server puts this file when we detach it. Is it in the folder (directory) that the NSF is in?